/**
 * Created by hms on 2020-08-22.
 */
import { ROAST_CONFIG } from '../config.js';

export default{
    getCommunityList:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/communitylist',{ params : data});
    },
    editCommunity:function(data){
        return axios.post(ROAST_CONFIG.API_URL+'/editcommunity',qs.stringify(data),{
            headers: {'Content-Type': 'application/x-www-form-urlencoded'}
        });
    },
    getCommunityInfo:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/communityinfo',{
            params:data
        });
    },
    delCommunity:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/delcommunity',{
            params:data
        });
    },
    getAllCommunityList:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/allcommunitylist',{params:data});
    }
}
